package com.cnswhy.cloud.server.core.service.shop;

import com.cnswhy.cloud.common.core.base.service.SuperService;
import com.cnswhy.cloud.server.core.dto.BuyerCart;
import com.cnswhy.cloud.server.core.dto.BuyerOperateBo;
import com.cnswhy.cloud.server.core.entity.CustomerReceiver;
import com.cnswhy.cloud.server.core.entity.ShopOrder;

import java.util.List;

/**
 * <p>
 * 业务接口
 * 商品订单表
 * </p>
 *
 * @author cnswhy
 * @date 2020-09-30
 */
public interface ShopOrderService extends SuperService<ShopOrder> {
    public ShopOrder queryById(Long id);
    public ShopOrder queryByPayOrderNo(String payOrderNum);
    public ShopOrder queryByOrderNo(String orderNo);
    void insert(ShopOrder entity);
    void update(ShopOrder entity);
    public BuyerCart getBuyerCart(List<BuyerOperateBo> list, CustomerReceiver receiver);
    void insertReceiver(CustomerReceiver invoice,Long orderId);

    public List<ShopOrder> pageList(ShopOrder shopOrder);

}
